#import "DictPageViewFactory.h"
#import "DictPageViewPlatformView.h"

@implementation DictPageViewFactory {
    id<FlutterPluginRegistrar> _registrar;
}
- (instancetype) initWith:(NSObject<FlutterPluginRegistrar>*) registrar {
    self = [super init];
    if (self) {
        _registrar = registrar;
    }
    return  self;
}

- (NSObject<FlutterPlatformView>*) createWithFrame:(CGRect) frame
    viewIdentifier: (int64_t)viewId
    arguments:(id _Nullable)args {
    DictPageViewPlatformView* view = [[DictPageViewPlatformView alloc] init];
    [view createWithFrame:frame viewIdentifier:viewId arguments:args];
    return view;
}

//- (NSObject<FlutterMessageCodec>*) createArgsCodec {
//    return [[FlutterJSONMessageCodec alloc] init];
//}

- (NSObject<FlutterMessageCodec>*)createArgsCodec {
    return [FlutterStandardMessageCodec sharedInstance];
}


@end
